package com.hxc.mapper;

import com.hxc.entity.Clazz;
import com.hxc.entity.ClazzQueryParam;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ClazzMapper {

    List<Clazz> getClazzPage(ClazzQueryParam param);

    void addClazz(Clazz clazz);
    @Select("select * from clazz where id=#{id}")
    Clazz getClazzById(int id);

    void updateClazz(Clazz clazz);
    @Delete("delete from clazz where id = #{id}")
    void deleteClazz(int id);
    @Select("select * from clazz")
    List<Clazz> getAllClazz();
}
